<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<div class="container">
<form:form action="new" method="post" commandName="torneo" cssClass="form-horizontal">            
        <br><br>
        <h3>Registro de Torneo</h3> 
        <div class="row">
        <div class="hero-unit-min">  
        <table align="center" border=0 cellspacing=2 cellpadding=4 width="90%" height="50px" bordercolor=red >
            <tr>
                <td>Torneo:</td>
                <td> 
                    <form:input path="notorneo" maxlength="30" cssClass="input-large"></form:input>
                    <form:errors path="notorneo" cssstyle="color:red"></form:errors>
                </td>
                <td>URL:</td>
                <td>
                    <form:input path="url" disabled="true"></form:input>
                    <form:errors path="url" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr>
                <td>Tipo:</td>
                <td>
                    <form:select path="fltipo">
                        <option value="0">Seleccione</option>
                    <option value="1">Imagen</option>
                    <option value="2">Texto</option>
                    </form:select>
                    <form:errors path="fltipo" cssstyle="color:red"></form:errors>
                </td>


        </tr>
          <tr>
                <td>Participantes:</td>
                <td>
                <form:input type="number" path="qtparticipantes" min="1" max="99" maxlength="2"></form:input>
                    <form:errors path="qtparticipantes" cssstyle="color:red"></form:errors>
                </td>                
                <td>Contendores:</td>
                <td>
                    <form:input type="number" step="4" path="qtcontendores" maxlength="2" min="4" max="98" size="5" ></form:input>
                    <form:errors path="qtcontendores" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr>
                <td>Fec Lanzamiento:</td>
                <td>
                    <form:input type="text" path="fclanzamiento" maxlength="10"></form:input>
                    <form:errors path="fclanzamiento" cssstyle="color:red"></form:errors>
                </td>
                <td>Fecha Cierre:</td>
                <td>
                    <form:input type="text" path="fccierre" maxlength="10" ></form:input>
                    <form:errors path="fccierre" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr>
                <td>Estado:</td>
                <td>
                    <form:select path="idestado">
                    <option value="1">Activo</option>
                    <option value="0">Inactivo</option>
                    </form:select>
                    <form:errors path="idestado" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr align="center">
                <td colspan="4">
                    <input name="" value="Grabar" type="submit" class="btn btn-mini btn-primary">
                    <a style="margin-left: 5px;" href="<c:url value='/pages/torneo/index'/>" class="btn btn-mini btn-primary">Cancelar</a>
                </td>
            </tr>
            </table>
        </div>
        </div>
     </form:form>
</div>
